package org.jeecg.modules.golf.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.golf.question.client.QuestionTypeAnalysisDTO;
import org.jeecg.modules.golf.question.client.qto.StatisticsQuestionAnalysisQueryDTO;
import org.jeecg.modules.golf.question.entity.QuestionTypeMapping;

import java.util.List;

/**
 * @Description: 问题分类方案关联表
 * @Author: jeecg-boot
 * @Date:   2020-10-18
 * @Version: V1.0
 */
public interface IQuestionTypeMappingService extends IService<QuestionTypeMapping> {

	 List<QuestionTypeMapping> selectByMainId(Long mainId);

	List<QuestionTypeMapping> selectByMappingIdList( List<Long> questionIdList, Integer mappingType);


	/**
	 * 批量保存
	 * @param questionTypeMappingList
	 */
	void save(List<QuestionTypeMapping> questionTypeMappingList,Integer mappingType,Long mappingId);




	/**
	 * 问题分类
	 * @param statisticsQuestionAnalysisQueryDTO
	 * @return
	 */
	List<QuestionTypeAnalysisDTO> typeDistAnalysis(StatisticsQuestionAnalysisQueryDTO statisticsQuestionAnalysisQueryDTO);

}
